package StudyCode.summary.mycollection;

import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ListToPrimitiveIntArray {
	public static Object toPrimitiveIntArray(List<?> values) {
		int[] array = new int[values.size()];
		int cursor = 0;

		for (Object o : values) {
			array[cursor] = (Integer) o;
			cursor++;
		}
		return array;
	}
}
